package org.mmtk.utility.options;

import org.vmutil.options.IntOption;

public class SamplePeriod extends IntOption {

	public SamplePeriod() {
		super(Options.set,"SamplePeriod","Sample Period (bytes) for MM Statistics",1<<20);
	}

	/**
	* Only accept 0 or positive values
	*/
	protected void validate() {
	  failIf(this.value < 0, "Must be positive");
	}
	
}
